<?php

$config = array(
	'admin/location_management/add' => array(
		array('field' => 'location_id', 'label' => 'Location ID', 'rules' => 'required|alpha|max_length[1]|is_unique[tbl_location.location_id]'),
		array('field' => 'location_name', 'label' => 'Location Name', 'rules' => 'required|alpha_numeric')
		),
		
	'admin/location_management/modify' => array(
		array('field' => 'location_id', 'label' => 'Location ID', 'rules' => 'required|alpha|max_length[1]'),
		array('field' => 'location_name', 'label' => 'Location Name', 'rules' => 'required|alpha_numeric')
		),		
	'admin/user_management/add' => array(
		array('field' => 'username', 'label' => 'Username', 'rules' => 'required|alpha_dash|is_unique[tbl_users.username]'),
		array('field' => 'password', 'label' => 'Password', 'rules' => 'required|min_length[4]|alpha_numeric'),
		array('field' => 'verifypassword', 'label' => 'Verify Password', 'rules' => 'required|matches[password]'),
		),
	'admin/user_management/modify' => array(
		array('field' => 'username', 'label' => 'Username', 'rules' => 'required|alpha_dash'),
		array('field' => 'password', 'label' => 'Password', 'rules' => 'required|min_length[4]|alpha_numeric'),
		array('field' => 'verifypassword', 'label' => 'Verify Password', 'rules' => 'required|matches[password]'),
		),
	'staff/subscriber_management' => array(
		array('field' => 'subscriber_id', 'label' => 'Subscriber Number', 'rules' => 'required|is_unique[tbl_subscriber.subscriber_id]'),
		array('field' => 'first_name', 'label' => 'First Name', 'rules' => 'required'),
		array('field' => 'last_name', 'label' => 'Last Name', 'rules' => 'required'),
		array('field' => 'initials', 'label' => 'Initials', 'rules' => ''),
		array('field' => 'title', 'label' => 'Title', 'rules' => ''),
		array('field' => 'address1', 'label' => 'Address 1', 'rules' => 'required'),
		array('field' => 'address2', 'label' => 'Address 2', 'rules' => ''),
		array('field' => 'suburb', 'label' => 'Suburb', 'rules' => 'required'),
		array('field' => 'post_code', 'label' => 'Post Code', 'rules' => 'required'),
		array('field' => 'phone', 'label' => 'Phone', 'rules' => ''),
		array('field' => 'mobile_phone', 'label' => 'Mobile Phone', 'rules' => ''),
		array('field' => 'work_phone', 'label' => 'Work Phone', 'rules' => ''),
		array( 'field' => 'subscriber_status', 'label' => 'Subsriber Status', 'rules' => ''),
		array('field' => 'email', 'label' => 'Email', 'rules' => '')
		),
	'staff/subscriber_management/addPayment' => array(
		array('field' => 'subscriber_id', 'label' => 'Subscriber Number', 'rules' => 'required'),
		array('field' => 'date_paid', 'label' => 'Date Paid', 'rules' => 'required'),
		array('field' => 'receipt_number', 'label' => 'Receipt Number', 'rules' => 'required'),
		array('field' => 'amount', 'label' => 'Amount', 'rules' => 'required|numeric'),
		array('field' => 'expiry_date', 'label' => 'Expiry Date', 'rules' => 'required'),
		),
	'staff/loan_management/add' => array(
		array('field' => 'access_id', 'label' => 'Access ID', 'rules' => 'required'),
		array('field' => 'subscriber_id', 'label' => 'Subscriber Number', 'rules' => 'required'),
		array('field' => 'loan_date', 'label' => 'Loan Date', 'rules' => 'required'),
		array('field' => 'due_date', 'label' => 'Due Date', 'rules' => 'required'),
		),
	'staff/loan_management/returnLoan' => array(
		array('field' => 'access_id', 'label' => 'Access ID', 'rules' => 'required')
		),
	'staff/loan_management/extendLoan' => array(
		array('field' => 'extension_date', 'label' => 'Extension Date', 'rules' => 'required'),
            	array('field' => 'due_date', 'label' => 'Due Date', 'rules' => 'required')
		),
	'staff/loan_management/modify' => array(
		array('field' => 'loan_date', 'label' => 'Loan Date', 'rules' => 'required'),
		array('field' => 'extension_date', 'label' => 'Extension Date', 'rules' => ''),
		array('field' => 'due_date', 'label' => 'Due Date', 'rules' => 'required'),
		array('field' => 'return_date', 'label' => 'Return Date', 'rules' => ''),
		array('field' => 'reserve_subscriber', 'label' => 'Reserve Subscriber', 'rules' => ''),
		),
	'admin/volume_management' => array(
		array('field' => 'access_id', 'label' => 'Access ID', 'rules' => 'required|is_unique[tbl_volume.access_id]'),
		array('field' => 'call_number', 'label' => 'Call Number', 'rules' => 'required'),
		array('field' => 'title', 'label' => 'Title', 'rules' => 'required'),
		array('field' => 'publisher_name', 'label' => 'Publisher Name', 'rules' => ''),
		array('field' => 'publisher_date', 'label' => 'Publisher Date', 'rules' => ''),
		array('field' => 'isbn', 'label' => 'ISBN', 'rules' => ''),
		array('field' => 'location_id', 'label' => 'Location ID', 'rules' => 'required'),
		array('field' => 'catalogue_date', 'label' => 'Catalogue Date', 'rules' => 'required')
		)
	);	   
?>